import axios from 'api/index'

// 查询
export function getBusinessRuleListApi(data) {
  return axios.post('/api/business/rules', data)
}

// 新增
export function addBusinessRuleApi(data) {
  return axios.put('/api/business/rule', data)
}

// 替换模板
export function replaceTemplateBusinessRuleApi(data) {
  return axios.post('/api/business/rule/template', data)
}

// 禁启用
export function editBusinessRuleApi(params) {
  return axios.get('/api/business/rule/status', { params })
}
